package com.cls.business.service;

import com.cls.business.entity.LeaderProject;

import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 主持人研究项目情况表 Service接口
 *
 * @author wandering
 * @date 2020-11-12 15:25:57
 */
public interface ILeaderProjectService extends IService<LeaderProject> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param leaderProject leaderProject
     * @return PageInfo<LeaderProject>
     */
    PageInfo<LeaderProject> findLeaderProjects(QueryRequest request, LeaderProject leaderProject);

    /**
     * 查询（所有）
     *
     * @param leaderProject leaderProject
     * @return List<LeaderProject>
     */
    List<LeaderProject> findLeaderProjects(LeaderProject leaderProject);

    /**
     * 新增
     *
     * @param leaderProject leaderProject
     */
    void createLeaderProject(LeaderProject leaderProject);

    /**
     * 修改
     *
     * @param leaderProject leaderProject
     */
    void updateLeaderProject(LeaderProject leaderProject);

    /**
     * 删除
     *
     * @param leaderProject leaderProject
     */
    void deleteLeaderProjects(String[] ids);

    List<LeaderProject> findByDeclareIdAndApplicantId(Long declareId, Long applicantId);

}
